package fr.cie.blog.domainservice;

import java.util.List;

import fr.cie.blog.beans.Article;
import fr.cie.blog.beans.Comment;
import fr.cie.blog.beans.User;

/**
 * @author AetM
 * 
 */
public interface IServiceComment extends IServiceGeneric<Comment> {

	/**
	 * @param article
	 *            the Article which owns the wanted Comment
	 * @return the list of article's comments
	 */
	List<Comment> findByArticle(Article article);

	/**
	 * @param user
	 *            the author of the wanted Comment
	 * @return the list of user's comment
	 */
	List<Comment> findByUser(User user);
}